<?
        require_once('../inc/Accounts.php');
        require_once('../inc/Users.php');
        RequireLogin();
        $results = GetUsers();
        $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : null;
        switch($action){
                case 'POST':
                        break;
                default: //     GET - Index & Details
                        $arr = array();
                        while($row = $results->fetch_assoc())
                                $arr[] = $row;
                                echo json_encode(array('aaData' => $arr));
                        break;
        }